package com.mentaleye.util;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.mentaleye.dal.model.StudentPunchRecord;

public class PunchDataUtil {
    public static List<StudentPunchRecord> getPunchListByInputAndWorkTimeList(List<StudentPunchRecord> punchRecordListInput,
    		List<Date> workDateList){
    	List<StudentPunchRecord> punchRecordList=new ArrayList<StudentPunchRecord>();
    	for (StudentPunchRecord punchRecordInput : punchRecordListInput) {
    		for (Date workDate : workDateList) {
    			if(punchRecordInput.getWriteTime().equals(workDate)){
    				punchRecordList.add(punchRecordInput);
    			}
			}
		}
		return punchRecordList;
    }
}
